<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;



//后台模块表
class ConfigModel extends Model
{
    //定义一个表名
    protected $table = 'config';
    //定义主键
    protected $primaryKey = 'id';
	protected $guarded = [];

 	static function getValue($name){
 		$value = ConfigModel::where('name',$name)->value('value');
 		return $value;
	}
}
